﻿using System.Collections.Specialized;
using Fabrication.Tests.TestClasses;
using NUnit.Framework;

namespace Fabrication.Tests
{
    [TestFixture]
    public class non_generic_collections
    {
        [Test]
        public void should_set_list_properties_to_empty_list()
        {
            var builtItem = new FabricationScope()
                .Generate<SinglePropertyClass<List>>();

            Assert.That(builtItem.Value, Is.Not.Null);
        }

        [Test]
        public void should_set_string_collection_properties_to_empty_list()
        {
            var builtItem = new FabricationScope()
                .Generate<SinglePropertyClass<StringCollection>>();

            Assert.That(builtItem.Value, Is.Not.Null);
        }
    }
}